package org.dromara.merchants.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.merchants.domain.TaCustomClassification;
import org.dromara.merchants.domain.vo.TaCustomClassificationVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 特色分类Mapper接口
 *
 * @author xiyin321
 * @date 2024-07-02
 */
public interface TaCustomClassificationMapper extends BaseMapperPlus<TaCustomClassification, TaCustomClassificationVo> {

    @DataPermission({
        @DataColumn(key = "userName", value = "create_by")
    })
    Page<TaCustomClassificationVo> selectCustomClassificationPage(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<TaCustomClassification> taCustomClassificationWrapper);

    @DataPermission({
        @DataColumn(key = "userName", value = "create_by")
    })
    List<TaCustomClassificationVo> selectCustomClassificationList(@Param(Constants.WRAPPER) Wrapper<TaCustomClassification> taCustomClassificationWrapper);
}
